package com.ytt.core.model.security.token;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

/**
 * UserLoginInfoDTO
 *
 * @author chenwen
 * @date 2019/9/16 09:49
 */
@ApiModel(description = "登录信息")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserLoginInfoDTO {

    @ApiModelProperty(position = 1, value = "账号", required = true)
    @NotNull
    private String account;

    @ApiModelProperty(position = 2, value = "密码", required = true)
    @NotNull
    private String password;

    @ApiModelProperty(position = 2, value = "用户类型", required = true)
    @NotNull
    private UserType userType;

}